from django.urls import path
from . import views

app_name = 'books'

urlpatterns = [
    path('', views.book_list, name='book_list'),
    path('book/<int:book_id>/', views.book_detail, name='book_detail'),
    path('book/<int:book_id>/borrow/', views.borrow_book, name='borrow_book'),
    path('book/<int:book_id>/reserve/', views.reserve_book, name='reserve_book'),
    path('return/<int:record_id>/', views.return_book, name='return_book'),
    path('my-borrows/', views.my_borrows, name='my_borrows'),
    path('my-reservations/', views.my_reservations, name='my_reservations'),
    path('category/<int:category_id>/', views.category_books, name='category_books'),
] 